package com.lemei.cn.myokhttpbeen.viewholder;

import android.view.View;

import butterknife.ButterKnife;

/**
 * Created by 赵航 on 2017/6/11.
 */

public abstract class BeasicViewHolder<T> {

    private final View mView;
    private View mItemView;

    //这里传入布局
    public BeasicViewHolder() {
        //还是谁用谁传
        mView = getItemView();
        mView.setTag(this);
        ButterKnife.bind(this,mView);

    }

    //这里进行赋值
    public abstract void bindView(T items);


    //返回view进行赋值
    public View getView(){
        return mView;
    }


    public abstract View getItemView();
}
